package com.zfl.mapper;

import com.zfl.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 权限Mapper（原生MyBatis）
 */
@Mapper
public interface PermissionMapper {

    @Select("SELECT id, url, description, bit_position AS bitPosition FROM permission")
    List<Permission> selectAll();
}